<%= error_messages_for 'machine' %>

<!--[form:machine]-->
<p><label for="machine_ip_address">Ip address</label><br/>
<%= text_field 'machine', 'ip_address'  %></p>

<p><label for="machine_mac_address">Mac address</label><br/>
<%= text_field 'machine', 'mac_address'  %></p>

<p><label for="machine_operating_system">Operating system</label><br/>
<%= text_field 'machine', 'operating_system'  %></p>

<p><label for="machine_hardware">Hardware</label><br/>
<%= text_field 'machine', 'hardware'  %></p>

<p><label for="machine_host_name">Host name</label><br/>
<%= text_field 'machine', 'host_name'  %></p>

<p><label for="machine_user">User</label><br/>
<%= text_field 'machine', 'user'  %></p>

<p><label for="machine_uptime">Uptime</label><br/>
<%= text_field 'machine', 'uptime'  %></p>

<p>
  <label for="categories">Categories:</label><br/>
  <select id="categories" name="categories[]" multiple="multiple"
          size="10" style="width:250px;">
    <%= options_from_collection_for_select(@all_categories,
                                           :id, :name,
                                           @selected) %>
  </select>
</p>

<p><label for="machine_notes">Notes</label><br/>
<%= text_area 'machine', 'notes'  %></p>

<!--[eoform:machine]-->

